package com.mygdx.game.stage.base;

import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.mygdx.game.MainGame;

public abstract class BaseStage extends Stage {

    private MainGame mainGame;
    /**
     * 标记舞台是否可见，是否更新
     */
    private boolean isVisible = false;

    public BaseStage(MainGame game, Viewport viewport) {
        super(viewport);
        mainGame = game;
    }

    public boolean getVisible() {
        return isVisible;
    }

    public MainGame getMainGame() {
        return mainGame;
    }

    public void setMainGame(MainGame game) {
        mainGame = game;
    }

    public void setVisible(boolean visible) {
        isVisible = visible;
    }
}
